export const extract = (text = '') => {
  const matches = text.match(/{(.*?)}/g);
  // 提取字段并去重
  const fields = matches ? Array.from(new Set(matches.map(match => match.slice(1, -1)))) : [];

  const fillMap = {};

  fields.forEach(f => {
    fillMap[f] = '';
  });

  return fillMap;
};
